// https://vitepress.dev/guide/custom-theme
import { h } from "vue";
import type { Theme } from "vitepress";
import DefaultTheme from "vitepress/theme";
import "./style.css";
import "cesium/Build/Cesium/Widgets/widgets.css";
import "@picocss/pico/css/pico.conditional.min.css";

export default {
  extends: DefaultTheme,
  Layout: () => {
    return h(DefaultTheme.Layout, null, {
      // https://vitepress.dev/guide/extending-default-theme#layout-slots
    });
  },
  async enhanceApp({ app, router, siteData }) {
    if (!import.meta.env.SSR) {
      const { loadOml2d } = await import("oh-my-live2d");
      loadOml2d({
        models: [
          {
            path: "https://cdn.jsdelivr.net/gh/QiShaoXuan/live2DModel@1.0.0/live2d-widget-model-wanko/assets/wanko.model.json",
            position: [0, 60],
            stageStyle:{
              height:'100px',
              scale:'1 1.5'
            },
            scale:0.12
          },
        ],
        dockedPosition: "right",
        menus:{disable:true},
        sayHello:false,
        tips:{
          style:{
            display:'none'
          }
        },
        statusBar:{
          disable:true
        }
      });
    }
  },
} satisfies Theme;
